
<script>
	
	export default {
		onLaunch: function() {
			console.log('App Launch')
      let _this = this;
      uni.getSystemInfo({
        success (res) {
					console.log(res, "systemINfo")
          _this.setViewport(`width=device-width, height=${res.windowHeight}, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover`);
        }
      })
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
    methods: {
      setViewport(content) {
        const meta = document.querySelector('meta[name=viewport]');
        if (!meta) return;
        meta.setAttribute('content', content);
      },
    }
	}
</script>

<style>
	@import 'vant/lib/index.css';
	@import './uni.scss';
	/*每个页面公共css */
</style>
